package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

static private org.apache.jasper.runtime.ProtectedFunctionMapper _jspx_fnmap_0;

static {
  _jspx_fnmap_0= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("stl:quickQuery", fr.inria.semtags.query.QueryHelper.class, "quickQuery", new Class[] {javax.servlet.jsp.PageContext.class, java.lang.String.class});
}

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(2);
    _jspx_dependants.add("/WEB-INF/c.tld");
    _jspx_dependants.add("/WEB-INF/fn.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dresult_005fquery;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dchild_005fvar_005froot;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dlabel_005fvar_005furi;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dresult_005fquery = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dchild_005fvar_005froot = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dlabel_005fvar_005furi = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fif_005ftest.release();
    _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dresult_005fquery.release();
    _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dchild_005fvar_005froot.release();
    _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dlabel_005fvar_005furi.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
      out.write("<html>");
      out.write("<head>");
      out.write("<title>");
      out.write("Application de test de Semtag");
      out.write("</title>");
      out.write("<meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\"/>");
      out.write("<link href=\"tutorial.css\" type=\"text/css\" rel=\"stylesheet\"/>");
      out.write("</head>");
      out.write("<body>");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("<h2>");
      out.write("Add a person");
      out.write("</h2>");
      out.write("<div>");
      out.write("<form method=\"post\" action=\"add-person.jsp\">");
      out.write("\n");
      out.write("\t\t\t\tAdd a person named: ");
      out.write("<input size=\"30\" name=\"name\" type=\"TEXT\"/>");
      out.write("<input name=\"Submit\" type=\"SUBMIT\"/>");
      out.write("</form>");
      out.write("</div>");
      out.write("<h2>");
      out.write("résultat de requête");
      out.write("</h2>");
      out.write("<div>");
      out.write("<ul>");
      if (_jspx_meth_stl_005ffor_002deach_002dresult_005f0(_jspx_page_context))
        return;
      out.write("</ul>");
      out.write("</div>");
      out.write("<h2>");
      out.write("Âge de John");
      out.write("</h2>");
      out.write("<div>");
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context))
        return;
      out.write("\n");
      out.write("\t\t\t\t");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${stl:quickQuery(pageContext, myQuery)}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
      out.write("\n");
      out.write("\t\t\t");
      out.write("</div>");
      out.write("<H2>");
      out.write("Sous-classes animal ");
      out.write("</H2>");
      out.write("<div>");
      out.write("<ul>");
      if (_jspx_meth_stl_005ffor_002deach_002dchild_005f0(_jspx_page_context))
        return;
      out.write("</ul>");
      out.write("</div>");
      out.write("</body>");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fif_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${empty applicationScope['defaultEngineWrapper']}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        if (_jspx_meth_stl_005finit_005f0(_jspx_th_c_005fif_005f0, _jspx_page_context))
          return true;
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_005ftest.reuse(_jspx_th_c_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_stl_005finit_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f0, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  stl:init
    fr.inria.semtags.admin.InitTag _jspx_th_stl_005finit_005f0 = new fr.inria.semtags.admin.InitTag();
    _jspx_th_stl_005finit_005f0.setJspContext(_jspx_page_context);
    _jspx_th_stl_005finit_005f0.setParent(_jspx_th_c_005fif_005f0);
    _jspx_th_stl_005finit_005f0.setDynamicAttribute(null, "humans", new String("http://www.inria.fr/2007/04/17/humans.rdfs#"));
    _jspx_th_stl_005finit_005f0.setRuleDir("WEB-INF/data/rules");
    _jspx_th_stl_005finit_005f0.setAnnotDir("WEB-INF/data/annotations");
    _jspx_th_stl_005finit_005f0.setOntoDir("WEB-INF/data/schemas");
    _jspx_th_stl_005finit_005f0.doTag();
    return false;
  }

  private boolean _jspx_meth_stl_005ffor_002deach_002dresult_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  stl:for-each-result
    fr.inria.semtags.query.ForEachResultTag _jspx_th_stl_005ffor_002deach_002dresult_005f0 = (fr.inria.semtags.query.ForEachResultTag) _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dresult_005fquery.get(fr.inria.semtags.query.ForEachResultTag.class);
    _jspx_th_stl_005ffor_002deach_002dresult_005f0.setPageContext(_jspx_page_context);
    _jspx_th_stl_005ffor_002deach_002dresult_005f0.setParent(null);
    _jspx_th_stl_005ffor_002deach_002dresult_005f0.setQuery("select ?name ?age WHERE {?x humans:name ?name. OPTIONAL{?x humans:age ?age}}");
    int[] _jspx_push_body_count_stl_005ffor_002deach_002dresult_005f0 = new int[] { 0 };
    try {
      int _jspx_eval_stl_005ffor_002deach_002dresult_005f0 = _jspx_th_stl_005ffor_002deach_002dresult_005f0.doStartTag();
      if (_jspx_eval_stl_005ffor_002deach_002dresult_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("<li>");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write(' ');
          if (_jspx_meth_c_005fif_005f1(_jspx_th_stl_005ffor_002deach_002dresult_005f0, _jspx_page_context, _jspx_push_body_count_stl_005ffor_002deach_002dresult_005f0))
            return true;
          out.write("</li>");
          int evalDoAfterBody = _jspx_th_stl_005ffor_002deach_002dresult_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_stl_005ffor_002deach_002dresult_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_stl_005ffor_002deach_002dresult_005f0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_stl_005ffor_002deach_002dresult_005f0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_stl_005ffor_002deach_002dresult_005f0.doFinally();
      _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dresult_005fquery.reuse(_jspx_th_stl_005ffor_002deach_002dresult_005f0);
    }
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_stl_005ffor_002deach_002dresult_005f0, PageContext _jspx_page_context, int[] _jspx_push_body_count_stl_005ffor_002deach_002dresult_005f0)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_stl_005ffor_002deach_002dresult_005f0);
    _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${!empty age}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
    if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write('(');
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${age}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write(')');
        int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_005ftest.reuse(_jspx_th_c_005fif_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_005ftest.reuse(_jspx_th_c_005fif_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fset_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:set
    org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
    _jspx_th_c_005fset_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fset_005f0.setParent(null);
    _jspx_th_c_005fset_005f0.setValue(new String("select ?age WHERE {?x humans:name 'John'. ?x humans:age ?age}"));
    _jspx_th_c_005fset_005f0.setVar("myQuery");
    int _jspx_eval_c_005fset_005f0 = _jspx_th_c_005fset_005f0.doStartTag();
    if (_jspx_th_c_005fset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fset_005fvar_005fvalue_005fnobody.reuse(_jspx_th_c_005fset_005f0);
    return false;
  }

  private boolean _jspx_meth_stl_005ffor_002deach_002dchild_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  stl:for-each-child
    fr.inria.semtags.view.ForEachSubNotionTag _jspx_th_stl_005ffor_002deach_002dchild_005f0 = (fr.inria.semtags.view.ForEachSubNotionTag) _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dchild_005fvar_005froot.get(fr.inria.semtags.view.ForEachSubNotionTag.class);
    _jspx_th_stl_005ffor_002deach_002dchild_005f0.setPageContext(_jspx_page_context);
    _jspx_th_stl_005ffor_002deach_002dchild_005f0.setParent(null);
    _jspx_th_stl_005ffor_002deach_002dchild_005f0.setVar("child");
    _jspx_th_stl_005ffor_002deach_002dchild_005f0.setRoot("http://www.inria.fr/2007/04/17/humans.rdfs#Animal");
    int[] _jspx_push_body_count_stl_005ffor_002deach_002dchild_005f0 = new int[] { 0 };
    try {
      int _jspx_eval_stl_005ffor_002deach_002dchild_005f0 = _jspx_th_stl_005ffor_002deach_002dchild_005f0.doStartTag();
      if (_jspx_eval_stl_005ffor_002deach_002dchild_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          if (_jspx_meth_stl_005ffor_002deach_002dlabel_005f0(_jspx_th_stl_005ffor_002deach_002dchild_005f0, _jspx_page_context, _jspx_push_body_count_stl_005ffor_002deach_002dchild_005f0))
            return true;
          int evalDoAfterBody = _jspx_th_stl_005ffor_002deach_002dchild_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_stl_005ffor_002deach_002dchild_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_stl_005ffor_002deach_002dchild_005f0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_stl_005ffor_002deach_002dchild_005f0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_stl_005ffor_002deach_002dchild_005f0.doFinally();
      _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dchild_005fvar_005froot.reuse(_jspx_th_stl_005ffor_002deach_002dchild_005f0);
    }
    return false;
  }

  private boolean _jspx_meth_stl_005ffor_002deach_002dlabel_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_stl_005ffor_002deach_002dchild_005f0, PageContext _jspx_page_context, int[] _jspx_push_body_count_stl_005ffor_002deach_002dchild_005f0)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  stl:for-each-label
    fr.inria.semtags.view.ForEachLabelTag _jspx_th_stl_005ffor_002deach_002dlabel_005f0 = (fr.inria.semtags.view.ForEachLabelTag) _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dlabel_005fvar_005furi.get(fr.inria.semtags.view.ForEachLabelTag.class);
    _jspx_th_stl_005ffor_002deach_002dlabel_005f0.setPageContext(_jspx_page_context);
    _jspx_th_stl_005ffor_002deach_002dlabel_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_stl_005ffor_002deach_002dchild_005f0);
    _jspx_th_stl_005ffor_002deach_002dlabel_005f0.setVar("childLabel");
    _jspx_th_stl_005ffor_002deach_002dlabel_005f0.setUri((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${child}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
    int[] _jspx_push_body_count_stl_005ffor_002deach_002dlabel_005f0 = new int[] { 0 };
    try {
      int _jspx_eval_stl_005ffor_002deach_002dlabel_005f0 = _jspx_th_stl_005ffor_002deach_002dlabel_005f0.doStartTag();
      if (_jspx_eval_stl_005ffor_002deach_002dlabel_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("<li>");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${childLabel}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write(' ');
          out.write(':');
          out.write(' ');
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${child}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("</li>");
          int evalDoAfterBody = _jspx_th_stl_005ffor_002deach_002dlabel_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_stl_005ffor_002deach_002dlabel_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_stl_005ffor_002deach_002dlabel_005f0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_stl_005ffor_002deach_002dlabel_005f0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_stl_005ffor_002deach_002dlabel_005f0.doFinally();
      _005fjspx_005ftagPool_005fstl_005ffor_002deach_002dlabel_005fvar_005furi.reuse(_jspx_th_stl_005ffor_002deach_002dlabel_005f0);
    }
    return false;
  }
}
